//***************************************************
// Program FOR SEPARATION OF FFP OUT OF 3BTT  CPD and SAGM
// DDP - SEPAMATIC-SL(III)
// Adapted by STEVEN LOU
// 06.08.2011
// PROGRAM STEPS
// 1.CRYO SEP1
// 2.CRYO SEP
//***************************************************
PROGRAM=42-LCD30
BAG_TYPE=2B-T/T
ALL_CLAMPS=ACD

PLACE=1;	LIQ=?????;	CLAMP=A;	NET=(TOTAL-27)/1.03;	SHOULDREAD=1; 
PLACE=3;	LIQ=Pla;	CLAMP=D;	NET=(TOTAL-27)/1.03;	SHOULDREAD=0; 

PROG_MENUS=SB;
MB_WEIGHT=30

BEGIN_PROG_ON_START
	DO_CLAMPS=CLOSE
	DO_PRESS_A=BCK
	DO_PRESS_B=NOTHING
END_PROG_ON_START
BEGIN_PROG_ON_FINISH
	DO_CLAMPS=OPEN
	DO_PRESS_A=MIDDLE
	DO_PRESS_B=NOTHING
END_PROG_ON_FINISH

BEGIN
	PROGRAM_STEP=CRYO SEP
	BEGIN
		SOURCE_PLACE=1
		DEST_PLACE=3
		ACTIVE_CLAMPS=ACD
		SOURCE_LIQ=?????
		DEST_LIQ=???
		//FLOW_CONTROL
		//REF_FLOW=5.00000
		HIGH_PRESSURE
		TIMEOUT=600000
		TIME_TO_STABLE=1000
		WAIT_TO_CHECKS_CONDS=3000
		BEGIN_ON_START
			DO_CLAMPS=OPEN
			DO_PRESS_A=FWD
		DO_PRESS_B=NOTHING
		END_ON_START
		BEGIN_ON_FINISH
			DO_CLAMPS=CLOSE
			DO_PRESS_A=MIDDLE
			DO_PRESS_B=NOTHING
		END_ON_FINISH
		BEGIN_FAIL_COND
		END_FAIL_COND
		BEGIN_REG_COND
			TYPE=E
			NAME=
			VALUE=60
		END_REG_COND
	END_STEP

	PROGRAM_STEP=42-LCD30
	BEGIN
		SHOW_MESSAGE=?????????????????????		
		TIMEOUT=5000
		BEGIN_ON_START
			DO_CLAMPS=NOTHING
			DO_PRESS_A=NOTHING
			DO_PRESS_B=NOTHING
		END_ON_START
		BEGIN_ON_FINISH
			DO_CLAMPS=NOTHING
			DO_PRESS_A=NOTHING
			DO_PRESS_B=NOTHING
		END_ON_FINISH
		BEGIN_REG_COND
			TYPE=C
			NAME=T
			VALUE=0
		END_REG_COND
	END_STEP

	PROGRAM_STEP=SEAL CLAMP ACD
	BEGIN
		ACTIVE_CLAMPS=ACD
		TIMEOUT=8000
		BEGIN_ON_START
			DO_CLAMPS=CLOSE
			DO_PRESS_A=NOTHING
			DO_PRESS_B=NOTHING
		END_ON_START
		BEGIN_ON_FINISH
			DO_CLAMPS=NOTHING
			DO_SEAL=AC
			DO_PRESS_A=NOTHING
			DO_PRESS_B=NOTHING
		END_ON_FINISH
		BEGIN_FAIL_COND
		END_FAIL_COND
		BEGIN_REG_COND
			TYPE=C
			NAME=T
			VALUE=0
		END_REG_COND
	END_STEP

END_PROGRAM